
file(GLOB SRC_LISTS "src/*.cpp")

add_library(MYMATH SHARED ${SRC_LISTS})

target_include_directories(MYMATH PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include)




#  通用方式：修改默认的输出路径 设置库属性
set_target_properties(MYMATH  PROPERTIES
    ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
    LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
    OUTPUT_NAME MYMATH
    VERSION 1.2.3
    SOVERSION 20
    COMPILE_OPTIONS "-fPIC"# 必加
)
